package com.party.core.model.enterpriseservice;

import com.party.core.model.BaseModel;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: party
 * @description: 服务类型
 * @author: Hua Qunhao
 * @create: 2019-01-08 14:37
 */
public class EpCategory  extends BaseModel implements Serializable {

    //类型名称
    private String name;
    //排序
    private Integer sort;
    //数量
    private Integer goodsNum;

    private String categoryList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(String categoryList) {
        this.categoryList = categoryList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        EpCategory that = (EpCategory) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(sort, that.sort) &&
                Objects.equals(goodsNum, that.goodsNum) &&
                Objects.equals(categoryList, that.categoryList);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), name, sort, goodsNum, categoryList);
    }

    @Override
    public String toString() {
        return "EpCategory{" +
                "name='" + name + '\'' +
                ", sort=" + sort +
                ", goodsNum=" + goodsNum +
                ", categoryList='" + categoryList + '\'' +
                '}';
    }
}
